import request from '@/utils/request';
export const articleList = (params) => {
    return request({
        url: '/v1_0/articles',
        params
    })
}
export const articleDetails = (id) => {
    return request({
        url: '/v1_0/articles/' + id,
    })
}
export const commentDetail = (params) => {
    return request({
        url: '/v1_0/comments',
        params
    })
}
export const addComment = (data) => {
    return request({
        url: '/v1_0/comments',
        method: 'post',
        data
    })
}
